/**
 * @FrameLabelData.as
 *
 * @author sodaChen mail:asframe@qq.com
 * @version 1.0
 * <br>Copyright (C), 2013 asFrame.com
 * <br>This program is protected by copyright laws.
 * <br>Program Name:ASFrame
 * <br>Date:2013-6-26
 */
package com.asframe.display.data
{
	import flash.display.BitmapData;

	/**
	 * 包含一系列帧数据的标签集合对象
	 * @author sodaChen
	 * Date:2013-6-26
	 */
	public class FrameLabelData
	{
		/** 帧标签名称 **/
		public var label:String;
		/** 每帧的图像信息 **/
		public var bitmapDatas:Vector.<BitmapData>;
		/** 包含每帧偏移的数据 **/
		public var frameDatas:Vector.<FrameData>;
		/** 通用缩放比例值 **/
		public var scale:Number;
		/** 帧动画的配置数据 **/
		public var config:*;

		public function FrameLabelData(label:String = null,
									   bitmapDatas:Vector.<BitmapData> = null,
									   frameDatas:Vector.<FrameData> = null,
									   scale:Number = 1):void
		{
			this.label = label;
			this.bitmapDatas = bitmapDatas;
			this.frameDatas = frameDatas;
			this.scale = scale;
		}
		/**
		 * 复制一个新的方向帧数据
		 * @param newScale
		 * @return
		 *
		 */
		public function clone(newScale:Number):FrameLabelData
		{
			return new FrameLabelData(label,bitmapDatas,frameDatas,newScale);
		}
	}
}
